<?php

class UserTablePeer extends BaseUserTablePeer
{
	/**
	 * get user info by login id
	 *
	 * @param 	string $intLoginId
	 * 			boolean $booLostPass
	 * @return array $aryUserList
	 */
	public static function getUserByLoginId($strLoginId) {
		$objCriteria = new Criteria();

		/* add condition */
		$objCriteria->add(UserTablePeer::MAIL_ADDRESS, $strLoginId, Criteria::EQUAL);
		$objCriteria->add(UserTablePeer::IS_DELETED, false, Criteria::EQUAL);

		$objStmt = UserTablePeer::doSelectStmt( $objCriteria );
		$aryUserList = $objStmt->fetchAll();
		return empty($aryUserList) ? null : $aryUserList[0];
	}
}
